package com.resou.reader.utils;

import java.util.Random;

/**
 * Created by ${Garrett} on 2018/10/30.
 * Contact me krouky@outlook.com
 */
public class NumberUtils {

    /**
     * 生成500~5000之间的随机数随机数
     *
     * @return 00~5000之间的随机数随机数
     */
    public static final int generate500To5000Number() {
        Random random = new Random();
        return random.nextInt(4500) + 500;
    }

    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println("number:" + generate500To5000Number());
        }
    }
}
